package leecode

func areOccurrencesEqual(s string) bool {
	hashMap := make(map[byte]int)
	for index, _ := range s {
		hashMap[s[index]]++
	}
	count := hashMap[s[0]]
	for _, value := range hashMap {
		if value != count {
			return false
		}
	}
	return true
}
